import getlink from "@/api/getapi.js"
// Vue.use(Vuex)
let  Danci={
    // export default new Vuex.Store({
      state: {
        arr:[]
      },
      mutations: {
        newdata(state,payload){
          state.arr=payload.arrdata
        },
    
      },
      actions: {
        getaxios(context, payload) {
          console.log(context);
          getlink(payload.url).then((ok) => {
            context.commit("newdata",{arrdata:ok.data.data})
          })
        }
      },
      modules: {
       
      }
    }
    export default Danci
    